#pragma once
#include "config.h"

// CReportLive

class CReportLive : public CXTPReportControl
{
	DECLARE_DYNAMIC(CReportLive)

public:
	CReportLive();
	virtual ~CReportLive();

protected:
	DECLARE_MESSAGE_MAP()
};


class CPaintManagerLive : public CXTPReportPaintManager
{
	friend class CReportLive;

public:
	CPaintManagerLive();

	virtual COLORREF GetControlBackColor(CXTPReportControl* pControl);
	virtual void FillRow(CDC* pDC, CXTPReportRow* pRow, CRect rcRow);
	virtual int GetRowHeight(CDC* pDC, CXTPReportRow* pRow);
	virtual void DrawItemCaption(XTP_REPORTRECORDITEM_DRAWARGS* pDrawArgs, XTP_REPORTRECORDITEM_METRICS* pMetrics);
	virtual void FillGroupRowMetrics(CXTPReportGroupRow* pRow, XTP_REPORTRECORDITEM_METRICS* pMetrics, BOOL bPrinting);


};

class CRecordLive : public CXTPReportRecord
{
	friend class CReportLive;
	friend class CPaintManagerLive;

	CRecordLive();
public:
	CRecordLive(cmatch mat);

protected:
	cmatch m_mat;
};